package com.zddroid.diycode.utils;

import com.jess.arms.utils.PermissionUtil;

import java.util.List;
import java.util.Timer;

import timber.log.Timber;

public class PermissionMsg{
    private static PermissionUtil.RequestPermission request = new PermissionUtil.RequestPermission() {
        @Override
        public void onRequestPermissionSuccess() {

        }

        @Override
        public void onRequestPermissionFailure(List<String> permissions) {
            Timber.tag(PermissionUtil.TAG).d("权限请求失败,"+permissions.get(0));
        }

        @Override
        public void onRequestPermissionFailureWithAskNeverAgain(List<String> permissions) {
            Timber.tag(PermissionUtil.TAG).d("权限请求被拒绝,"+permissions.get(0));
        }
    };

    public static PermissionUtil.RequestPermission getInstance(){
        return request;
    }
}
